#上次提交名字错误使用上一个提交
from django.core.files.storage import Storage
from django.utils.deconstruct import  deconstructible

from meiduo_mall import settings


@deconstructible
class Mystorage(Storage,):
    def __init__(self,fdfs_url=None):
        if not fdfs_url:
            fdfs_url=settings.FDFS_URL
        self.fdfs_url=fdfs_url
    def _open (self,name,mode='rb'):
        pass
    def _save(self, name, content, max_length=None):
        pass
    def url(self, name):
        return self.fdfs_url+name
